OverLord Shell
<?php session_start();
include("db/conn.php");
include_once("header.inc.php");
//include_once("banner.inc.php");
include("sidebar.php");
if(!isset($_SESSION['company_id']) || !isset($_SESSION['company_name'])){session_destroy();header("location:login.php");}
if(!in_array($_SESSION['loggedin_user'],array('admin','company'))){header("location:404.php");}
$webpagetitle="Edit Product photo";
$arrinfo = getData('busdir_product_photo','photo_id',base64_decode($_GET['id']),null,null);
if(empty($arrinfo))header("location:404.php");
?>
<a href="javascript:void(0)" class="btn btn-info pull-right" onClick="history.back()"style="margin-top: 1%;
margin-right: 3%;><i class="fa fa-angle-left mrm"></i>Go Back</a>
<!--BEGIN CONTENT-->
<div class="page-content">
<div class="row">
<div class="col-sm-8">
<div class="panel">
<div class="panel-body">
<form role="form" id="updateform" enctype="multipart/form-data">
<input type="hidden" value="<?php echo base64_decode($_GET['id']);?>" id="photo_id" name="photo_id">
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<label>Image <span class="require">*</span> <small class="text-muted">(max size: 2MB)</small></label>
<div class="input-group">
<input type="file" class="form-control" name="productimg" id="productimg" data-validation="required mime size" data-validation-allowing="jpg, png, gif" data-validation-max-size="2M" data-validation-error-msg="Invalid Image">
<a href="uploads/products/<?php echo $arrinfo['photo_path'];?>" class="input-group-addon fancybox" title="Existing Image"><i class="fa fa-eye"></i></a>
<input type="hidden" value="<?php echo $arrinfo['photo_path'];?>" id="old_productimg" name="old_productimg">
</div>
</div>
</div>
</div>
<div class="note note-danger displaynone"></div>
<button type="submit" class="btn btn-primary" data-loading-text="Submitting...">Save</button>
<button type="reset" class="btn btn-default" onClick="$('.note-danger').hide()">Reset</button>
<a href="javascript:void(0)" class="btn btn-link" onclick="history.back()"><i class="fa fa-angle-left mrm"></i>Go Back</a>
</form>
</div>
</div>
</div>
</div>
</div>
<!--END CONTENT-->
<link type="text/css" rel="stylesheet" href="css/jquery.fancybox.css">
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/validate.js"></script>
<script>$('.fancybox').fancybox();</script>
<?php $connection->close();include("footer.inc.php")?>
xRyukZ - Copyright 2k19